package com.itheima.travel.domain;

import lombok.Data;

@Data
public class CartItem {

    private Route route;  //旅游路线

    private int num;  //购物项的数量

    private double subTotal ; //购物项的小计

    public double getSubTotal(){
        return route.getPrice()*num;
    }

}
